import { userTableService } from './userManageTableServices';
import { useManageService } from './userManageTreeServices';

export const userManageReq = (curRes: any) => {
  const { reloadLeftTree, userTreeData, userTreeLoading } = useManageService(curRes);
  const { reloadRightTable, userTableData, userTableLoading, refreshManageTable } = userTableService();

  return {
    reloadLeftTree,
    userTreeData,
    userTreeLoading,
    reloadRightTable,
    userTableData,
    userTableLoading,
    refreshManageTable,
  };
};
